﻿using System.Xml.Linq;
using Microsoft.Xna.Framework.Content.Pipeline;

namespace Phoenix.Xna.Framework.ContentPipeline.EffectMaps
{
    /// <summary>
    /// Imports EffectMap files.
    /// </summary>
    [ContentImporter(".effectMap", DisplayName = "EffectMap Importer - Phoenix XNA Engine", DefaultProcessor = "EffectMapProcessor")]
    public class EffectMapImporter : ContentImporter<XElement>
    {
        /// <summary>
        /// Imports the EffectMap file.
        /// </summary>
        /// <param name="fileName">The EffectMap file to load.</param>
        /// <param name="context">The context to apply to the file when loading.</param>
        /// <returns>The loaded EffectMap file.</returns>
        public override XElement Import(string fileName, ContentImporterContext context)
        {
            return XElement.Load(fileName);
        }
    }
}
